<template>
	<view class="cover-wrap">
		<!-- 左箭头图标 -->
		<image :src="backgroundImg" class="background-img" mode="aspectFill"></image>
		<view class="top-wrap">
			<image src="/static/juben/arrow-pink.jpg" style="width: 70upx;height: 70upx;"></image>
			<view class="title">{{name}}</view>
		</view>
		<view class="bottom-wrap">
			<view class="play-num">
				{{playNum}}
				<view>
					扮演
				</view>
			</view>
			<view class="like-num">
				{{likeNum}}
				<view>
					我喜欢
				</view>
			</view>
			<!-- 心形图标 -->
			<image src="/static/juben/xihuan-juben.jpg" style="width: 70upx;height: 70upx;"></image>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			name:{
				type:String,
				default:'乡村爱情故事'
			},
			backgroundImg:{
				type:String,
				default:'/static/juben/linshi/cover.jpg'
			},
			playNum: {
				type: Number,
				default: 25,
			},
			likeNum: {
				type: Number,
				default: 5,
			}
		}
	}
</script>

<style scoped>
	.cover-wrap {
		width: 100%;
		height: 360upx;
		color: white;
	}

	.top-wrap {
		display: flex;
		justify-content: space-between;
	}

	.title {
		margin: auto;
		font-size: 40upx;
	}

	.bottom-wrap {
		position: absolute;
		display: flex;
		top: 260upx;
		right: 20upx;
		z-index: 1;
	}

	.play-num {
		width: 100upx;
		text-align: center;
	}

	.like-num {
		width: 130upx;
		text-align: center;
	}

	.background-img {
		width: 100%;
		height: 360upx;
		filter: brightness(60%);
		position: absolute;
		top: 0;
		left: 0;
		z-index: -1;
	}
</style>
